package com.elf.zero.utils;

import java.io.File;

/**
 * 安全工具类
 * Created by Lidong on 2019/6/27.
 */
public class SecurityUtils {

    /**
     * 是否root
     * @return true root，false no root
     */
    public static boolean isRooted() {
        try {
            return new File("/system/bin/su").exists() || new File("/system/xbin/su").exists();
        } catch (Exception e) {
            return false;
        }
    }
}
